﻿
using FluentNHibernate.Mapping;
using EntitiesAndMappings.Entities;

namespace EntitiesAndMappings.Maps
{
    public class ProyectoMap : ClassMap<Proyecto>
    {
        public ProyectoMap()
        {
            Id(x => x.Id);
            Map(x => x.Codigo).Length(15).Not.Nullable();
            Map(x => x.Descripcion).Length(100).Not.Nullable();
            Map(x => x.Estado).Length(1).Not.Nullable(); 

        }
    }
}
